/**
 * 操作订单的一些公共操作
 */
define(['common/js/service/boss-common-service-0.1'],function(){
	   
	  serviceModule.factory("CrmCommonRestService", function ($window, $http, $q, CommonRestService) {
		  return {
			  
			  /***
			   * 性别下拉菜单
			   */
			  sexlist:function(params){
				  return CommonRestService.query("/common/crm/customer/sexlist",params);
			  },
			  /***
			   * 会员类型下拉菜单
			   * param：customerParentType 普通会员、大客户会员
			   */
			  typelist:function(params){
				  if(params==true){
					  params={}
				  }
				  return CommonRestService.query("/common/crm/customer/typelist",params);
			  },
			  /***
			   * 会员级别下拉菜单
			   * param：customerParentType 普通会员、大客户会员
			   */
			  levellist:function(params){
				  if(params==true){
					  params={}
				  }
				  return CommonRestService.query("/common/crm/customer/levellist",params);
			  },
			  /**
			   * 会员父类型：普通会员、大客户
			   * @param params
			   * @returns {*}
			   */
			  customerParentTypeList:function(params){
				  return CommonRestService.query("/common/crm/customer/customerParentTypeList",params);
			  },
			  /**
			   * 充值送积分
			   * @param params
			   * @returns {*}
			   */
			  rechargePoint:function(params){
				  return CommonRestService.query("/common/crm/rule/rechargePoint",params);
			  }, /**
			   * 充值送成长值
			   * @param params
			   * @returns {*}
			   */
			  rechargeGrowth:function(params){
				  return CommonRestService.query("/common/crm/rule/rechargeGrowth",params);
			  }, /**
			   * 消费送积分
			   * @param params
			   * @returns {*}
			   */
			  consumePoint:function(params){
				  return CommonRestService.query("/common/crm/rule/consumePoint",params);
			  }, /**
			   * 消费送成长值
			   * @param params
			   * @returns {*}
			   */
			  consumeGrowth:function(params){
				  return CommonRestService.query("/common/crm//rule/consumeGrowth",params);
			  },
			  /**
			   * 查询会员信息
			   */
			  findForList:function(params){
				  return CommonRestService.query("/common/crm/customer/findForList",params);
			  }
		  };
	  });
});